import { requestA } from './request'

// 1. 定义请求分类整体数据
function getCategoryData() {
     return requestA({
         url: '/category',
     })
}

function getSubCategory(maitKey) {
    return requestA({
        url: '/subcategory',
        params: {
            maitKey
        }
    })
}

// 3. 定义请求分类详细页数据
function getCategoryDetail(miniWallkey, type) {
     return requestA({
        url: '/subcategory/detail',
        params: {
          miniWallkey,
          type
        }
     })
}

export {
   getCategoryData,
   getSubCategory,
   getCategoryDetail
}